package org.fdy.common.framework.config;

import io.minio.MinioClient;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.fdy.common.framework.config.properties.MinioProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * <p>描述：</p>
 *
 * @author fangdy
 * @create 2024-07-29 9:25
 */
@Configuration
@RequiredArgsConstructor
@Slf4j
public class MinioConfig {

    private final MinioProperties minioProperties;

//    @Bean
//    public MinioClient getMinioClient() {
//        log.info("minio配置信息：{}", minioProperties);
//        return MinioClient.builder().endpoint(minioProperties.getUrl())
//                .credentials(minioProperties.getAccessKey(), minioProperties.getSecretKey()).build();
//    }
}
